package libofei.dao;

import libofei.entity.user.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface UserMapper{

	 User findByName(@Param("name") String name);

	 int insert(@Param("name") String name, @Param("age") Integer age);

	 int insertUser(@Param("user") User user);

	 List<User> getUserList();

	 List<User> getUserListByPage();

	 User getUserById(int id);

	 int deleteUserById(int id);
}
